package com.lee.spring.service.impl;

import com.lee.mybatis.entity.Role;
import com.lee.mybatis.mapper.RoleMapper;
import com.lee.spring.service.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> selectAll(){
        log.info("正在查询...");

       return roleMapper.selectAll();

    }}
